<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>第二步</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/install/index/tpl/public/css/index.css"/>
	<script type='text/javascript' src='http://localhost/hdphp/plugin/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src="http://localhost/hb/easycms/install/index/tpl/public/js/index.js"></script>
</head>
<body>
	<form action="<?php echo U('step3');?>" id='form2' method='post'>
	<div class='wrap'>
		<h2 class='tit'>EASYCMS后台管理系统正在安装
			<span>正在安装
			<b>v1.0正式版</b>
		</span>
		</h2>
		<div class='sudu2'></div>
		<h2 class='azinfo'>程序环境</h2>
		<table class='table1'>
			<tr>
				<th>参数</th>
				<th style='text-align:left;text-indent: 20px;'>值</th>
			</tr>
			<tr>
				<td>PHP版本</td>
				<td>
					<?php if($check['functions']['version']){?>
                        <?php echo PHP_VERSION;?>
                    <?php  }else{ ?>
                        <span class="error">当前环境PHP版本过低</span>
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>GD库</td>
				<td>
					<?php if($check['functions']['gd']){?>
                        正常
                    <?php  }else{ ?>
                       	必须开启GD库
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>imagejpeg函数</td>
				<td>
					<?php if($check['functions']['imagejpeg']){?>
                        可用
                    <?php  }else{ ?>
                        不存在
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>imagepng</td>
				<td>
					<?php if($check['functions']['imagepng']){?>
                        可用
                    <?php  }else{ ?>
                        不存在
                    <?php }?>
				</td>
			</tr>
		</table>
		<h2 class='azinfo'>目录权限检测</h2>
		<table class='table1'>
			<tr>
				<th>目录名</th>
				<th style='text-align:left;text-indent: 20px;'>
					<span>状态</span>
				</th>
			</tr>
			<tr>
				<td>/</td>
				<td>
					<?php if($check['dirs']['root']){?>
                        <span class='succ'>可写</span>
                    <?php  }else{ ?>
                        <span class='error'>不可写</span>
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>/config</td>
				<td>
					<?php if($check['dirs']['config']){?>
                        <span class='succ'>可写</span>
                    <?php  }else{ ?>
                        <span class='error'>不可写</span>
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>/temp</td>
				<td>
					<?php if($check['dirs']['temp']){?>
                        <span class='succ'>可写</span>
                    <?php  }else{ ?>
                        <span class='error'>不可写</span>
                    <?php }?>
				</td>
			</tr>
			<tr>
				<td>/h </td>
				<td>
					<?php if($check['dirs']['h']){?>
                        <span class='succ'>可写</span>
                    <?php  }else{ ?>
                        <span class='error'>不可写</span>
                    <?php }?>
				</td>
			</tr>
		</table>
		<div class='btn'>
			<input type='submit' class='bt1' value='下一步'>
		</div>
	</div>
</form>
</body>
</html>